package com.newdjk.newdoctor.adapter;



import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.newdjk.newdoctor.R;
import com.newdjk.newdoctor.entity.GoodShareEntity;
import com.newdjk.newdoctor.utils.GlideUtils;
import com.newdjk.okhttp.entity.QueryServicePackDetailEntity;

import java.util.List;

public class ShareServicedapter extends BaseQuickAdapter<QueryServicePackDetailEntity, BaseViewHolder> {


    private static final String TAG = "CityAdapter";

    public ShareServicedapter(@Nullable List<QueryServicePackDetailEntity> data) {
        super(R.layout.share_service_item,data);
    }


    @Override
    protected void convert(BaseViewHolder baseViewHolder, QueryServicePackDetailEntity itemEntity) {

        ImageView avatar = baseViewHolder.getView(R.id.im_good);

       // GlideUtils.loadCommonmage(itemEntity.getMasterPicture(),avatar);
        baseViewHolder.setText(R.id.tv_desc, itemEntity.getServiceItemName());
        baseViewHolder.setText(R.id.tv_price, itemEntity.getTotalPrice());
        baseViewHolder.setText(R.id.tv_count,"x"+ itemEntity.getNumValue());


    }


}


